package edu.washington.tcss360.burningpenguins.BPGUI;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

// methods in here to change the functionality of the main panel
/**
 * The primary panel of the GUI is constructed within this class.
 * 
 * @author Sean
 * @version 1
 * @since 11/19/2013
 */
public class BPContentPage extends JPanel {

	/**
	 * Enables serializing of this object.
	 */
	private static final long serialVersionUID = 6671070420735940394L;

	/**
	 * Burning penguins icon.
	 */
	private BufferedImage image;
	
	/**
	 * Constructor for the main content page.
	 */
	protected BPContentPage() {
		super();
		try {
			// this is mainly for comic relief.  If we do get an actual icon for this, replace reference here.
			image = ImageIO.read(new File("setFire.jpg"));
			JLabel bpIcon = new JLabel(new ImageIcon(image));
			this.setLayout(new BorderLayout());
			this.add(bpIcon);
		} catch (IOException e) {
			
		}
		this.setBackground(Color.GRAY);
		this.setPreferredSize(new Dimension(650, 600));
		this.setVisible(true);
	}	
	
}
